

namespace Stee.CAP8.MessageBus.Interface.Models
{
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// Message for command transaction
    /// </summary>
    [Serializable]
    public class CommandMessage : EventMessage
    {
        /// <summary>
        /// Gets or sets the record ID
        /// </summary>
        public string RecordID { get; set; }

        /// <summary>
        /// Gets or sets the reply channel / rollback channel
        /// </summary>
        public string ReplyChannel { get; set; }




        /// <summary>
        /// Initializes a new instance of the CommandMessage class
        /// </summary>
        public CommandMessage() { }


        /// <summary>
        /// Gets a string that represents the current object
        /// </summary>
        /// <returns>Return current object string representation</returns>
        public override string ToString()
        {
            return $"{this.Action}_{this.ClientID}_{this.CorrelationID}";
        }
    }
}
